<template>
  <div>
    <h2>我是home {{ useStore.username }}</h2>
  </div>
</template>
<script setup lang="ts">
import { onMounted } from 'vue'
import useUserStore from '@/store/modules/user'

let useStore = useUserStore()

//目前首页挂载完毕发请求获取用户信息
onMounted(() => {
  useStore.userInfo()
})
</script>
<style scoped lang="scss"></style>
